package com.xing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xing.DTO.LoginDTO;
import com.xing.DTO.SysUserDTO;
import com.xing.Utils.Result;
import com.xing.entity.SysUserEntity;
import com.xing.utils.PageData;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @version 1.0
 * @Author Xing
 * @Date 2023/12/3 22:04
 */
public interface SysUserService extends IService<SysUserEntity> {
    Result login(LoginDTO user);

    SysUserEntity getByUsername(String username);

    Result register(LoginDTO user);

    void getArticle(HttpServletResponse response, String key);

    Result getUserInfo();

    PageData<SysUserDTO> listByPage(Integer pageNum, Integer pageSize,String username);

    SysUserDTO getUserById(String id);

    Boolean delUser(Long userId);

    void getArticleByEmail(String email);
}
